package com.muqiuhan.osmanthus.models

/** Used to indicate the status of a task. id may be used to compare its priority. */
enum TaskStatus(id: Short):
  case NOT_STARTED extends TaskStatus(0)
  case PENDING     extends TaskStatus(1)
  case DOING       extends TaskStatus(2)
  case ERROR       extends TaskStatus(3)
  case FINISH      extends TaskStatus(4)
  case STOP        extends TaskStatus(5)
end TaskStatus
